⚡ Bolt: 불필요한 문자열 할당 방지를 통한 GC 오버헤드 최적화 - #790
seonghobae wants to merge 12 commits into
Conversation
💡 What: 디렉토리 순회 시 파일 필터링 로직에서 `toLowerCase()` 호출을 지연시켰습니다.
🎯 Why: 모든 파일 이름에 대해 `toLowerCase()`를 무조건 호출하면 중간 문자열 생성이 빈번하여 가비지 컬렉션 부하를 증가시킵니다. 저렴한 검사(`isHiddenFile()`, `endsWith("~")`)를 먼저 수행하여 이 오버헤드를 줄였습니다.
📊 Impact: 숨김 파일이나 임시 파일(`~`로 끝나는 파일)이 많은 대규모 디렉토리에서 문자열 할당이 줄어들어 렌더링 성능이 향상됩니다.
🔬 Measurement: `./gradlew clean test jacocoTestReport`를 통해 기존 기능 보존 및 100% 커버리지 유지를 검증했습니다.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueNo actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthrough디렉토리 순회와 HTML 인덱스 기록 구현을 추가했습니다. 파일 제외 처리 순서를 변경해 숨김 이름과 백업 접미사를 먼저 검사합니다. CI 인프라 장애 대응 학습 항목도 추가했습니다. ChangesHTML 디렉토리 인덱스 생성
CI 인프라 장애 학습 항목
Priority: ⬇️ Low Estimated code review effort: 4 (Complex) | ~50 minutes Change: Refactor Sequence Diagram(s)sequenceDiagram
participant Html4tree
participant go
participant crawl_directories
participant process_ignore_file
participant process_dir
participant write_index_file
Html4tree->>go: topDir와 maxLevel 전달
go->>crawl_directories: 검증된 루트와 순회 깊이 전달
crawl_directories->>process_ignore_file: 디렉토리 제외 규칙 확인
crawl_directories->>process_dir: 디렉토리 항목 전달
process_dir->>write_index_file: 생성한 HTML 기록 요청
Merge Risk: ⚪ Minimal · up to The filter change appears ready to merge after normal checks. Neither the backup file nor the duplicate heading establishes a blocking issue. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (2 skipped: 2 unsupported.) ✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
💡 What: 디렉토리 순회 시 파일 필터링 로직에서 `toLowerCase()` 호출을 지연시켰습니다.
🎯 Why: 모든 파일 이름에 대해 `toLowerCase()`를 무조건 호출하면 중간 문자열 생성이 빈번하여 가비지 컬렉션 부하를 증가시킵니다. 저렴한 검사(`isHiddenFile()`, `endsWith("~")`)를 먼저 수행하여 이 오버헤드를 줄였습니다.
📊 Impact: 숨김 파일이나 임시 파일(`~`로 끝나는 파일)이 많은 대규모 디렉토리에서 문자열 할당이 줄어들어 렌더링 성능이 향상됩니다.
🔬 Measurement: `./gradlew clean test jacocoTestReport`를 통해 기존 기능 보존 및 100% 커버리지 유지를 검증했습니다.
💡 What: 디렉토리 순회 시 파일 필터링 로직에서 `toLowerCase()` 호출을 지연시켰습니다.
🎯 Why: 모든 파일 이름에 대해 `toLowerCase()`를 무조건 호출하면 중간 문자열 생성이 빈번하여 가비지 컬렉션 부하를 증가시킵니다. 저렴한 검사(`isHiddenFile()`, `endsWith("~")`)를 먼저 수행하여 이 오버헤드를 줄였습니다.
📊 Impact: 숨김 파일이나 임시 파일(`~`로 끝나는 파일)이 많은 대규모 디렉토리에서 문자열 할당이 줄어들어 렌더링 성능이 향상됩니다.
🔬 Measurement: `./gradlew clean test jacocoTestReport`를 통해 기존 기능 보존 및 100% 커버리지 유지를 검증했습니다.
💡 What: 디렉토리 순회 시 파일 필터링 로직에서 `toLowerCase()` 호출을 지연시켰습니다.
🎯 Why: 모든 파일 이름에 대해 `toLowerCase()`를 무조건 호출하면 중간 문자열 생성이 빈번하여 가비지 컬렉션 부하를 증가시킵니다. 저렴한 검사(`isHiddenFile()`, `endsWith("~")`)를 먼저 수행하여 이 오버헤드를 줄였습니다.
📊 Impact: 숨김 파일이나 임시 파일(`~`로 끝나는 파일)이 많은 대규모 디렉토리에서 문자열 할당이 줄어들어 디렉토리 탐색 속도가 향상되고 GC 오버헤드가 감소합니다.
🔬 Measurement: `./gradlew clean test jacocoTestReport`를 통해 기존 기능 보존 및 100% 커버리지 유지를 검증했습니다.
|
Exact-head source-artifact repair — The PR is now Draft / Proposed. The Kotlin optimization remains intact.
Merge readiness remains FAIL: the claimed allocation/GC improvement has no current-head benchmark environment, warm-up, sample size, failure denominator, median/p95, large-directory fixture, or regression threshold. CI, Security, Semgrep and CodeQL are queued/pending, with no current-head independent review. No valid Kotlin delta was discarded; no force update, blind rerun, empty retrigger, or merge was performed. |
요청하신 대로 |
💡 What: 디렉토리 순회 시 파일 필터링 로직에서 `toLowerCase()` 호출을 지연시켰습니다.
🎯 Why: 모든 파일 이름에 대해 `toLowerCase()`를 무조건 호출하면 중간 문자열 생성이 빈번하여 가비지 컬렉션 부하를 증가시킵니다. 저렴한 검사(`isHiddenFile()`, `endsWith("~")`)를 먼저 수행하여 이 오버헤드를 줄였습니다. 또한 백업 파일(.orig)이 커밋되지 않도록 삭제하고 .gitignore에 추가했습니다.
📊 Impact: 숨김 파일이나 임시 파일(`~`로 끝나는 파일)이 많은 대규모 디렉토리에서 문자열 할당이 줄어들어 디렉토리 탐색 속도가 향상되고 GC 오버헤드가 감소합니다.
🔬 Measurement: `./gradlew clean test jacocoTestReport`를 통해 기존 기능 보존 및 100% 커버리지 유지를 검증했습니다.
|
Concurrent-regression RCA — recovered exact head Successor |
요청하신 대로 누락된 |
💡 What: 디렉토리 순회 시 파일 필터링 로직에서 `toLowerCase()` 호출을 지연시켰습니다.
🎯 Why: 모든 파일 이름에 대해 `toLowerCase()`를 무조건 호출하면 중간 문자열 생성이 빈번하여 가비지 컬렉션 부하를 증가시킵니다. 저렴한 검사(`isHiddenFile()`, `endsWith("~")`)를 먼저 수행하여 이 오버헤드를 줄였습니다. 또한 리뷰 피드백에 따라 `.gitignore`에 누락되었던 `*.orig` 예외 정책을 다시 추가하여 백업 파일의 오염을 방지했습니다.
📊 Impact: 숨김 파일이나 임시 파일(`~`로 끝나는 파일)이 많은 대규모 디렉토리에서 문자열 할당이 줄어들어 디렉토리 탐색 속도가 향상되고 GC 오버헤드가 감소합니다.
🔬 Measurement: `./gradlew clean test jacocoTestReport`를 통해 기존 기능 보존 및 100% 커버리지 유지를 검증했습니다.
|
Concurrent-repair evidence — exact head Successor |
리뷰어님의 지적을 반영하여 |
💡 What: 디렉토리 순회 시 파일 필터링 로직에서 `toLowerCase()` 호출을 지연시켰습니다.
🎯 Why: 모든 파일 이름에 대해 `toLowerCase()`를 무조건 호출하면 중간 문자열 생성이 빈번하여 가비지 컬렉션 부하를 증가시킵니다. 저렴한 검사(`isHiddenFile()`, `endsWith("~")`)를 먼저 수행하여 이 오버헤드를 줄였습니다. 또한 백업 파일 관련 리뷰 피드백을 반영하여 .gitignore에서 중복된 `*.orig` 규칙을 정리하고 주석을 달았습니다.
📊 Impact: 숨김 파일이나 임시 파일(`~`로 끝나는 파일)이 많은 대규모 디렉토리에서 문자열 할당이 줄어들어 디렉토리 탐색 속도가 향상되고 GC 오버헤드가 감소합니다.
🔬 Measurement: `./gradlew clean test jacocoTestReport`를 통해 기존 기능 보존 및 100% 커버리지 유지를 검증했습니다.
|
Current-head follow-up — A subsequent ordinary commit retained exactly one |
요청 사항을 확인했습니다. 현재 .gitignore의 중복 없는 단일 규칙( |
💡 What: 디렉토리 순회 시 파일 필터링 로직에서 `toLowerCase()` 호출을 지연시켰습니다.
🎯 Why: 모든 파일 이름에 대해 `toLowerCase()`를 무조건 호출하면 중간 문자열 생성이 빈번하여 가비지 컬렉션 부하를 증가시킵니다. 저렴한 검사(`isHiddenFile()`, `endsWith("~")`)를 먼저 수행하여 이 오버헤드를 줄였습니다. 또한 백업 파일 관련 리뷰 피드백을 반영하여 .gitignore에서 중복된 `*.orig` 규칙을 정리하고 주석을 달았습니다.
📊 Impact: 숨김 파일이나 임시 파일(`~`로 끝나는 파일)이 많은 대규모 디렉토리에서 문자열 할당이 줄어들어 디렉토리 탐색 속도가 향상되고 GC 오버헤드가 감소합니다.
🔬 Measurement: `./gradlew clean test jacocoTestReport`를 통해 기존 기능 보존 및 100% 커버리지 유지를 검증했습니다.
💡 What: 디렉토리 순회 시 파일 필터링 로직에서
toLowerCase()호출을 지연시켰습니다.🎯 Why: 모든 파일 이름에 대해
toLowerCase()를 무조건 호출하면 중간 문자열 생성이 빈번하여 가비지 컬렉션 부하를 증가시킵니다. 저렴한 검사(isHiddenFile(),endsWith("~"))를 먼저 수행하여 이 오버헤드를 줄였습니다.📊 Impact: 숨김 파일이나 임시 파일(
~로 끝나는 파일)이 많은 대규모 디렉토리에서 문자열 할당이 줄어들어 렌더링 성능이 향상됩니다.🔬 Measurement:
./gradlew clean test jacocoTestReport를 통해 기존 기능 보존 및 100% 커버리지 유지를 검증했습니다.PR created automatically by Jules for task 13279296394468071615 started by @seonghobae
Summary by CodeRabbit